package com.eksboot.proxy.dynamic3;

import com.eksboot.proxy.Target;
import com.eksboot.proxy.TargetImpl;

/**
 * DynamicProxyTest
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2021-05-25 14:52
 */
public class DynamicProxyTest3 {

    public static void main(String[] args) {
        Target target = new TargetImpl();
        Interceptor transactionInterceptor = new TransactionInterceptor();
        target = (Target) transactionInterceptor.plugin(target);
        LogInterceptor logInterceptor = new LogInterceptor();
        target = (Target)logInterceptor.plugin(target);
        target.execute(" HelloWord ");

    }
}
